<?php defined('SYSPATH') OR die('No direct script access.');

class Controller_Qr extends Controller {

	public function action_index($text, $size = 25)
	{
		return $this->action_png($text, $size);
	}

	public function action_png($text, $size = 25)
	{
		QR::png($text, FALSE, QR_ECLEVEL_H, $size, 0 );
	}

	public function action_svg($text, $element_id = FALSE, $width = FALSE, $size = FALSE)
	{
		QR::svg($text, $element_id, FALSE, QR_ECLEVEL_H, $width, $size, 0 );
	}
}